package com.xiweicheng.test.springboot.hibernate.jpa.entity;
// Generated 2018-7-13 20:57:41 by Hibernate Tools 5.0.6.Final

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Users generated by hbm2java
 */
@Entity
@Table(name = "users", catalog = "tms")
public class Users implements java.io.Serializable {

	private String username;
	private long version;
	private Date createDate;
	private String creator;
	private boolean enabled;
	private Date lastLoginDate;
	private Boolean locked;
	private long loginCount;
	private String loginRemoteAddress;
	private String mails;
	private String name;
	private String password;
	private Date resetPwdDate;
	private String resetPwdToken;
	private String status;
	private Set channelGroupsForUpdater = new HashSet(0);
	private Set blogAuthoritiesForUpdater = new HashSet(0);
	private Set logs = new HashSet(0);
	private Set blogStowsForUpdater = new HashSet(0);
	private Set chatsForUpdater = new HashSet(0);
	private Set chatLabels = new HashSet(0);
	private Set linksForUpdater = new HashSet(0);
	private Set blogStowsForCreator = new HashSet(0);
	private Set linksForCreator = new HashSet(0);
	private Set todosForCreator = new HashSet(0);
	private Set channelGroupsForCreator = new HashSet(0);
	private Set translates = new HashSet(0);
	private Set tagsForCreator = new HashSet(0);
	private Set schedulesForUpdater = new HashSet(0);
	private Set chatLabels_1 = new HashSet(0);
	private Set chatStowsForCreator = new HashSet(0);
	private Set channelsForOwner = new HashSet(0);
	private Set chatAtsForUpdater = new HashSet(0);
	private Set chatDirectsForChatTo = new HashSet(0);
	private Set spacesForUpdater = new HashSet(0);
	private Set channelGroups = new HashSet(0);
	private Set chatChannelFollowers = new HashSet(0);
	private Set blogAuthoritiesForUser = new HashSet(0);
	private Set tagsForUpdater = new HashSet(0);
	private Set blogHistoriesForBlogUpdater = new HashSet(0);
	private Set projects = new HashSet(0);
	private Set blogFollowersForUpdater = new HashSet(0);
	private Set projects_1 = new HashSet(0);
	private Set chatsForCreator = new HashSet(0);
	private Set blogsForUpdater = new HashSet(0);
	private Set commentsForCreator = new HashSet(0);
	private Set schedulesForCreator = new HashSet(0);
	private Set settingsForCreator = new HashSet(0);
	private Set blogsForCreator = new HashSet(0);
	private Set spaceAuthoritiesForCreator = new HashSet(0);
	private Set chatStowsForStowUser = new HashSet(0);
	private Set channels = new HashSet(0);
	private Set channels_1 = new HashSet(0);
	private Set todosForUpdater = new HashSet(0);
	private Set chatDirectsForCreator = new HashSet(0);
	private Set chatStowsForUpdater = new HashSet(0);
	private Set spaceAuthoritiesForUpdater = new HashSet(0);
	private Set chatAtsForCreator = new HashSet(0);
	private Set chatRepliesForCreator = new HashSet(0);
	private Set settingsForUpdater = new HashSet(0);
	private Set blogHistoriesForUpdater = new HashSet(0);
	private Set spacesForCreator = new HashSet(0);
	private Set authoritieses = new HashSet(0);
	private Set blogHistoriesForCreator = new HashSet(0);
	private Set channelsForCreator = new HashSet(0);
	private Set chatPins = new HashSet(0);
	private Set blogAuthoritiesForCreator = new HashSet(0);
	private Set chatRepliesForUpdater = new HashSet(0);
	private Set commentsForUpdater = new HashSet(0);
	private Set chatAtsForAtUser = new HashSet(0);
	private Set schedules = new HashSet(0);
	private Set spaceAuthoritiesForUser = new HashSet(0);
	private Set chatChannelsForCreator = new HashSet(0);
	private Set chats = new HashSet(0);
	private Set blogFollowersForCreator = new HashSet(0);
	private Set chatDirectsForUpdater = new HashSet(0);
	private Set channelsForUpdater = new HashSet(0);
	private Set chatChannelsForUpdater = new HashSet(0);

	public Users() {
	}

	public Users(String username, boolean enabled, long loginCount, String password, String status) {
		this.username = username;
		this.enabled = enabled;
		this.loginCount = loginCount;
		this.password = password;
		this.status = status;
	}

	public Users(String username, Date createDate, String creator, boolean enabled, Date lastLoginDate, Boolean locked,
			long loginCount, String loginRemoteAddress, String mails, String name, String password, Date resetPwdDate,
			String resetPwdToken, String status, Set channelGroupsForUpdater, Set blogAuthoritiesForUpdater, Set logs,
			Set blogStowsForUpdater, Set chatsForUpdater, Set chatLabels, Set linksForUpdater, Set blogStowsForCreator,
			Set linksForCreator, Set todosForCreator, Set channelGroupsForCreator, Set translates, Set tagsForCreator,
			Set schedulesForUpdater, Set chatLabels_1, Set chatStowsForCreator, Set channelsForOwner,
			Set chatAtsForUpdater, Set chatDirectsForChatTo, Set spacesForUpdater, Set channelGroups,
			Set chatChannelFollowers, Set blogAuthoritiesForUser, Set tagsForUpdater, Set blogHistoriesForBlogUpdater,
			Set projects, Set blogFollowersForUpdater, Set projects_1, Set chatsForCreator, Set blogsForUpdater,
			Set commentsForCreator, Set schedulesForCreator, Set settingsForCreator, Set blogsForCreator,
			Set spaceAuthoritiesForCreator, Set chatStowsForStowUser, Set channels, Set channels_1, Set todosForUpdater,
			Set chatDirectsForCreator, Set chatStowsForUpdater, Set spaceAuthoritiesForUpdater, Set chatAtsForCreator,
			Set chatRepliesForCreator, Set settingsForUpdater, Set blogHistoriesForUpdater, Set spacesForCreator,
			Set authoritieses, Set blogHistoriesForCreator, Set channelsForCreator, Set chatPins,
			Set blogAuthoritiesForCreator, Set chatRepliesForUpdater, Set commentsForUpdater, Set chatAtsForAtUser,
			Set schedules, Set spaceAuthoritiesForUser, Set chatChannelsForCreator, Set chats,
			Set blogFollowersForCreator, Set chatDirectsForUpdater, Set channelsForUpdater,
			Set chatChannelsForUpdater) {
		this.username = username;
		this.createDate = createDate;
		this.creator = creator;
		this.enabled = enabled;
		this.lastLoginDate = lastLoginDate;
		this.locked = locked;
		this.loginCount = loginCount;
		this.loginRemoteAddress = loginRemoteAddress;
		this.mails = mails;
		this.name = name;
		this.password = password;
		this.resetPwdDate = resetPwdDate;
		this.resetPwdToken = resetPwdToken;
		this.status = status;
		this.channelGroupsForUpdater = channelGroupsForUpdater;
		this.blogAuthoritiesForUpdater = blogAuthoritiesForUpdater;
		this.logs = logs;
		this.blogStowsForUpdater = blogStowsForUpdater;
		this.chatsForUpdater = chatsForUpdater;
		this.chatLabels = chatLabels;
		this.linksForUpdater = linksForUpdater;
		this.blogStowsForCreator = blogStowsForCreator;
		this.linksForCreator = linksForCreator;
		this.todosForCreator = todosForCreator;
		this.channelGroupsForCreator = channelGroupsForCreator;
		this.translates = translates;
		this.tagsForCreator = tagsForCreator;
		this.schedulesForUpdater = schedulesForUpdater;
		this.chatLabels_1 = chatLabels_1;
		this.chatStowsForCreator = chatStowsForCreator;
		this.channelsForOwner = channelsForOwner;
		this.chatAtsForUpdater = chatAtsForUpdater;
		this.chatDirectsForChatTo = chatDirectsForChatTo;
		this.spacesForUpdater = spacesForUpdater;
		this.channelGroups = channelGroups;
		this.chatChannelFollowers = chatChannelFollowers;
		this.blogAuthoritiesForUser = blogAuthoritiesForUser;
		this.tagsForUpdater = tagsForUpdater;
		this.blogHistoriesForBlogUpdater = blogHistoriesForBlogUpdater;
		this.projects = projects;
		this.blogFollowersForUpdater = blogFollowersForUpdater;
		this.projects_1 = projects_1;
		this.chatsForCreator = chatsForCreator;
		this.blogsForUpdater = blogsForUpdater;
		this.commentsForCreator = commentsForCreator;
		this.schedulesForCreator = schedulesForCreator;
		this.settingsForCreator = settingsForCreator;
		this.blogsForCreator = blogsForCreator;
		this.spaceAuthoritiesForCreator = spaceAuthoritiesForCreator;
		this.chatStowsForStowUser = chatStowsForStowUser;
		this.channels = channels;
		this.channels_1 = channels_1;
		this.todosForUpdater = todosForUpdater;
		this.chatDirectsForCreator = chatDirectsForCreator;
		this.chatStowsForUpdater = chatStowsForUpdater;
		this.spaceAuthoritiesForUpdater = spaceAuthoritiesForUpdater;
		this.chatAtsForCreator = chatAtsForCreator;
		this.chatRepliesForCreator = chatRepliesForCreator;
		this.settingsForUpdater = settingsForUpdater;
		this.blogHistoriesForUpdater = blogHistoriesForUpdater;
		this.spacesForCreator = spacesForCreator;
		this.authoritieses = authoritieses;
		this.blogHistoriesForCreator = blogHistoriesForCreator;
		this.channelsForCreator = channelsForCreator;
		this.chatPins = chatPins;
		this.blogAuthoritiesForCreator = blogAuthoritiesForCreator;
		this.chatRepliesForUpdater = chatRepliesForUpdater;
		this.commentsForUpdater = commentsForUpdater;
		this.chatAtsForAtUser = chatAtsForAtUser;
		this.schedules = schedules;
		this.spaceAuthoritiesForUser = spaceAuthoritiesForUser;
		this.chatChannelsForCreator = chatChannelsForCreator;
		this.chats = chats;
		this.blogFollowersForCreator = blogFollowersForCreator;
		this.chatDirectsForUpdater = chatDirectsForUpdater;
		this.channelsForUpdater = channelsForUpdater;
		this.chatChannelsForUpdater = chatChannelsForUpdater;
	}

	@Id

	@Column(name = "username", unique = true, nullable = false, length = 50)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Version
	@Column(name = "version", nullable = false)
	public long getVersion() {
		return this.version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_date", length = 19)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "creator")
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "enabled", nullable = false)
	public boolean isEnabled() {
		return this.enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_login_date", length = 19)
	public Date getLastLoginDate() {
		return this.lastLoginDate;
	}

	public void setLastLoginDate(Date lastLoginDate) {
		this.lastLoginDate = lastLoginDate;
	}

	@Column(name = "locked")
	public Boolean getLocked() {
		return this.locked;
	}

	public void setLocked(Boolean locked) {
		this.locked = locked;
	}

	@Column(name = "login_count", nullable = false)
	public long getLoginCount() {
		return this.loginCount;
	}

	public void setLoginCount(long loginCount) {
		this.loginCount = loginCount;
	}

	@Column(name = "login_remote_address")
	public String getLoginRemoteAddress() {
		return this.loginRemoteAddress;
	}

	public void setLoginRemoteAddress(String loginRemoteAddress) {
		this.loginRemoteAddress = loginRemoteAddress;
	}

	@Column(name = "mails")
	public String getMails() {
		return this.mails;
	}

	public void setMails(String mails) {
		this.mails = mails;
	}

	@Column(name = "name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "password", nullable = false)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "reset_pwd_date", length = 19)
	public Date getResetPwdDate() {
		return this.resetPwdDate;
	}

	public void setResetPwdDate(Date resetPwdDate) {
		this.resetPwdDate = resetPwdDate;
	}

	@Column(name = "reset_pwd_token")
	public String getResetPwdToken() {
		return this.resetPwdToken;
	}

	public void setResetPwdToken(String resetPwdToken) {
		this.resetPwdToken = resetPwdToken;
	}

	@Column(name = "status", nullable = false)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChannelGroupsForUpdater() {
		return this.channelGroupsForUpdater;
	}

	public void setChannelGroupsForUpdater(Set channelGroupsForUpdater) {
		this.channelGroupsForUpdater = channelGroupsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getBlogAuthoritiesForUpdater() {
		return this.blogAuthoritiesForUpdater;
	}

	public void setBlogAuthoritiesForUpdater(Set blogAuthoritiesForUpdater) {
		this.blogAuthoritiesForUpdater = blogAuthoritiesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set getLogs() {
		return this.logs;
	}

	public void setLogs(Set logs) {
		this.logs = logs;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getBlogStowsForUpdater() {
		return this.blogStowsForUpdater;
	}

	public void setBlogStowsForUpdater(Set blogStowsForUpdater) {
		this.blogStowsForUpdater = blogStowsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChatsForUpdater() {
		return this.chatsForUpdater;
	}

	public void setChatsForUpdater(Set chatsForUpdater) {
		this.chatsForUpdater = chatsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set getChatLabels() {
		return this.chatLabels;
	}

	public void setChatLabels(Set chatLabels) {
		this.chatLabels = chatLabels;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getLinksForUpdater() {
		return this.linksForUpdater;
	}

	public void setLinksForUpdater(Set linksForUpdater) {
		this.linksForUpdater = linksForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getBlogStowsForCreator() {
		return this.blogStowsForCreator;
	}

	public void setBlogStowsForCreator(Set blogStowsForCreator) {
		this.blogStowsForCreator = blogStowsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getLinksForCreator() {
		return this.linksForCreator;
	}

	public void setLinksForCreator(Set linksForCreator) {
		this.linksForCreator = linksForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getTodosForCreator() {
		return this.todosForCreator;
	}

	public void setTodosForCreator(Set todosForCreator) {
		this.todosForCreator = todosForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChannelGroupsForCreator() {
		return this.channelGroupsForCreator;
	}

	public void setChannelGroupsForCreator(Set channelGroupsForCreator) {
		this.channelGroupsForCreator = channelGroupsForCreator;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "watcher_translate", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "translate_id", nullable = false, updatable = false) })
	public Set getTranslates() {
		return this.translates;
	}

	public void setTranslates(Set translates) {
		this.translates = translates;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getTagsForCreator() {
		return this.tagsForCreator;
	}

	public void setTagsForCreator(Set tagsForCreator) {
		this.tagsForCreator = tagsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getSchedulesForUpdater() {
		return this.schedulesForUpdater;
	}

	public void setSchedulesForUpdater(Set schedulesForUpdater) {
		this.schedulesForUpdater = schedulesForUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "voter_chat_label", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "chat_label_id", nullable = false, updatable = false) })
	public Set getChatLabels_1() {
		return this.chatLabels_1;
	}

	public void setChatLabels_1(Set chatLabels_1) {
		this.chatLabels_1 = chatLabels_1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChatStowsForCreator() {
		return this.chatStowsForCreator;
	}

	public void setChatStowsForCreator(Set chatStowsForCreator) {
		this.chatStowsForCreator = chatStowsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByOwner")
	public Set getChannelsForOwner() {
		return this.channelsForOwner;
	}

	public void setChannelsForOwner(Set channelsForOwner) {
		this.channelsForOwner = channelsForOwner;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChatAtsForUpdater() {
		return this.chatAtsForUpdater;
	}

	public void setChatAtsForUpdater(Set chatAtsForUpdater) {
		this.chatAtsForUpdater = chatAtsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByChatTo")
	public Set getChatDirectsForChatTo() {
		return this.chatDirectsForChatTo;
	}

	public void setChatDirectsForChatTo(Set chatDirectsForChatTo) {
		this.chatDirectsForChatTo = chatDirectsForChatTo;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getSpacesForUpdater() {
		return this.spacesForUpdater;
	}

	public void setSpacesForUpdater(Set spacesForUpdater) {
		this.spacesForUpdater = spacesForUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "member_channel_group", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "channel_group_id", nullable = false, updatable = false) })
	public Set getChannelGroups() {
		return this.channelGroups;
	}

	public void setChannelGroups(Set channelGroups) {
		this.channelGroups = channelGroups;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set getChatChannelFollowers() {
		return this.chatChannelFollowers;
	}

	public void setChatChannelFollowers(Set chatChannelFollowers) {
		this.chatChannelFollowers = chatChannelFollowers;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUser")
	public Set getBlogAuthoritiesForUser() {
		return this.blogAuthoritiesForUser;
	}

	public void setBlogAuthoritiesForUser(Set blogAuthoritiesForUser) {
		this.blogAuthoritiesForUser = blogAuthoritiesForUser;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getTagsForUpdater() {
		return this.tagsForUpdater;
	}

	public void setTagsForUpdater(Set tagsForUpdater) {
		this.tagsForUpdater = tagsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByBlogUpdater")
	public Set getBlogHistoriesForBlogUpdater() {
		return this.blogHistoriesForBlogUpdater;
	}

	public void setBlogHistoriesForBlogUpdater(Set blogHistoriesForBlogUpdater) {
		this.blogHistoriesForBlogUpdater = blogHistoriesForBlogUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "user_project", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "project_id", nullable = false, updatable = false) })
	public Set getProjects() {
		return this.projects;
	}

	public void setProjects(Set projects) {
		this.projects = projects;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getBlogFollowersForUpdater() {
		return this.blogFollowersForUpdater;
	}

	public void setBlogFollowersForUpdater(Set blogFollowersForUpdater) {
		this.blogFollowersForUpdater = blogFollowersForUpdater;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "watcher_project", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "project_id", nullable = false, updatable = false) })
	public Set getProjects_1() {
		return this.projects_1;
	}

	public void setProjects_1(Set projects_1) {
		this.projects_1 = projects_1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChatsForCreator() {
		return this.chatsForCreator;
	}

	public void setChatsForCreator(Set chatsForCreator) {
		this.chatsForCreator = chatsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getBlogsForUpdater() {
		return this.blogsForUpdater;
	}

	public void setBlogsForUpdater(Set blogsForUpdater) {
		this.blogsForUpdater = blogsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getCommentsForCreator() {
		return this.commentsForCreator;
	}

	public void setCommentsForCreator(Set commentsForCreator) {
		this.commentsForCreator = commentsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getSchedulesForCreator() {
		return this.schedulesForCreator;
	}

	public void setSchedulesForCreator(Set schedulesForCreator) {
		this.schedulesForCreator = schedulesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getSettingsForCreator() {
		return this.settingsForCreator;
	}

	public void setSettingsForCreator(Set settingsForCreator) {
		this.settingsForCreator = settingsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getBlogsForCreator() {
		return this.blogsForCreator;
	}

	public void setBlogsForCreator(Set blogsForCreator) {
		this.blogsForCreator = blogsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getSpaceAuthoritiesForCreator() {
		return this.spaceAuthoritiesForCreator;
	}

	public void setSpaceAuthoritiesForCreator(Set spaceAuthoritiesForCreator) {
		this.spaceAuthoritiesForCreator = spaceAuthoritiesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByStowUser")
	public Set getChatStowsForStowUser() {
		return this.chatStowsForStowUser;
	}

	public void setChatStowsForStowUser(Set chatStowsForStowUser) {
		this.chatStowsForStowUser = chatStowsForStowUser;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "member_channel", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "channel_id", nullable = false, updatable = false) })
	public Set getChannels() {
		return this.channels;
	}

	public void setChannels(Set channels) {
		this.channels = channels;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "subscriber_channel", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "channel_id", nullable = false, updatable = false) })
	public Set getChannels_1() {
		return this.channels_1;
	}

	public void setChannels_1(Set channels_1) {
		this.channels_1 = channels_1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getTodosForUpdater() {
		return this.todosForUpdater;
	}

	public void setTodosForUpdater(Set todosForUpdater) {
		this.todosForUpdater = todosForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChatDirectsForCreator() {
		return this.chatDirectsForCreator;
	}

	public void setChatDirectsForCreator(Set chatDirectsForCreator) {
		this.chatDirectsForCreator = chatDirectsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChatStowsForUpdater() {
		return this.chatStowsForUpdater;
	}

	public void setChatStowsForUpdater(Set chatStowsForUpdater) {
		this.chatStowsForUpdater = chatStowsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getSpaceAuthoritiesForUpdater() {
		return this.spaceAuthoritiesForUpdater;
	}

	public void setSpaceAuthoritiesForUpdater(Set spaceAuthoritiesForUpdater) {
		this.spaceAuthoritiesForUpdater = spaceAuthoritiesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChatAtsForCreator() {
		return this.chatAtsForCreator;
	}

	public void setChatAtsForCreator(Set chatAtsForCreator) {
		this.chatAtsForCreator = chatAtsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChatRepliesForCreator() {
		return this.chatRepliesForCreator;
	}

	public void setChatRepliesForCreator(Set chatRepliesForCreator) {
		this.chatRepliesForCreator = chatRepliesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getSettingsForUpdater() {
		return this.settingsForUpdater;
	}

	public void setSettingsForUpdater(Set settingsForUpdater) {
		this.settingsForUpdater = settingsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getBlogHistoriesForUpdater() {
		return this.blogHistoriesForUpdater;
	}

	public void setBlogHistoriesForUpdater(Set blogHistoriesForUpdater) {
		this.blogHistoriesForUpdater = blogHistoriesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getSpacesForCreator() {
		return this.spacesForCreator;
	}

	public void setSpacesForCreator(Set spacesForCreator) {
		this.spacesForCreator = spacesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set getAuthoritieses() {
		return this.authoritieses;
	}

	public void setAuthoritieses(Set authoritieses) {
		this.authoritieses = authoritieses;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getBlogHistoriesForCreator() {
		return this.blogHistoriesForCreator;
	}

	public void setBlogHistoriesForCreator(Set blogHistoriesForCreator) {
		this.blogHistoriesForCreator = blogHistoriesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChannelsForCreator() {
		return this.channelsForCreator;
	}

	public void setChannelsForCreator(Set channelsForCreator) {
		this.channelsForCreator = channelsForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "users")
	public Set getChatPins() {
		return this.chatPins;
	}

	public void setChatPins(Set chatPins) {
		this.chatPins = chatPins;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getBlogAuthoritiesForCreator() {
		return this.blogAuthoritiesForCreator;
	}

	public void setBlogAuthoritiesForCreator(Set blogAuthoritiesForCreator) {
		this.blogAuthoritiesForCreator = blogAuthoritiesForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChatRepliesForUpdater() {
		return this.chatRepliesForUpdater;
	}

	public void setChatRepliesForUpdater(Set chatRepliesForUpdater) {
		this.chatRepliesForUpdater = chatRepliesForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getCommentsForUpdater() {
		return this.commentsForUpdater;
	}

	public void setCommentsForUpdater(Set commentsForUpdater) {
		this.commentsForUpdater = commentsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByAtUser")
	public Set getChatAtsForAtUser() {
		return this.chatAtsForAtUser;
	}

	public void setChatAtsForAtUser(Set chatAtsForAtUser) {
		this.chatAtsForAtUser = chatAtsForAtUser;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "actor_schedule", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "schedule_id", nullable = false, updatable = false) })
	public Set getSchedules() {
		return this.schedules;
	}

	public void setSchedules(Set schedules) {
		this.schedules = schedules;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUser")
	public Set getSpaceAuthoritiesForUser() {
		return this.spaceAuthoritiesForUser;
	}

	public void setSpaceAuthoritiesForUser(Set spaceAuthoritiesForUser) {
		this.spaceAuthoritiesForUser = spaceAuthoritiesForUser;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getChatChannelsForCreator() {
		return this.chatChannelsForCreator;
	}

	public void setChatChannelsForCreator(Set chatChannelsForCreator) {
		this.chatChannelsForCreator = chatChannelsForCreator;
	}

	@ManyToMany(fetch = FetchType.LAZY)
	@JoinTable(name = "voter_chat", catalog = "tms", joinColumns = {
			@JoinColumn(name = "user_id", nullable = false, updatable = false) }, inverseJoinColumns = {
					@JoinColumn(name = "chat_id", nullable = false, updatable = false) })
	public Set getChats() {
		return this.chats;
	}

	public void setChats(Set chats) {
		this.chats = chats;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByCreator")
	public Set getBlogFollowersForCreator() {
		return this.blogFollowersForCreator;
	}

	public void setBlogFollowersForCreator(Set blogFollowersForCreator) {
		this.blogFollowersForCreator = blogFollowersForCreator;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChatDirectsForUpdater() {
		return this.chatDirectsForUpdater;
	}

	public void setChatDirectsForUpdater(Set chatDirectsForUpdater) {
		this.chatDirectsForUpdater = chatDirectsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChannelsForUpdater() {
		return this.channelsForUpdater;
	}

	public void setChannelsForUpdater(Set channelsForUpdater) {
		this.channelsForUpdater = channelsForUpdater;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "usersByUpdater")
	public Set getChatChannelsForUpdater() {
		return this.chatChannelsForUpdater;
	}

	public void setChatChannelsForUpdater(Set chatChannelsForUpdater) {
		this.chatChannelsForUpdater = chatChannelsForUpdater;
	}

}
